import { PORT1 } from "@/api/config/servicePort";
import Http from "@/api/index";
import { ResPage } from "../interface";

const baseUrl = PORT1 + "/system/lou_pan_help";

export const getLouPanList = (params: any) => {
  return Http.get<ResPage<any>>(baseUrl + "/list", params);
};

export const getLouPanInfo = (id: number) => {
  return Http.get(baseUrl + "/info", { id });
};

const baseActiveUrl = baseUrl + "/active";

export const getActiveList = (params: any) => {
  return Http.get<ResPage<any>>(baseActiveUrl + "/list", params);
};

export const getActive = (id: number) => {
  return Http.get(baseActiveUrl + "/info", { id });
};
